#ifndef __SQL_DUMP_H__
#define __SQL_DUMP_H__

#include "sql_tree.h"

int sql_print_op (LN_STRING_PTR o, S_FUNC_TYPE_DEF op);
int sql_print_hint (LN_STRING_PTR o, SQL_HINT_TYPE hint);
int sql_printf(LN_STRING_PTR o, const char* s, ...);
int sql_print_space (LN_STRING_PTR o, int space, int count);
int sql_print_name (LN_STRING_PTR o, struct SQL_node_name_t * name);

#define sql_dump_node(nd,o,name,dep)  \
    if (nd) { SQL_node_vt_list[(nd)->type]->dump( (nd),o,(name),(dep) ); }

#endif